#include "stdafx.h"
#include "DataTest.h"

USING_NAMESPACE_BENTLEY
USING_NAMESPACE_BENTLEY_SQLITE
USING_NAMESPACE_BENTLEY_SQLITE_EC
USING_NAMESPACE_EC
USING_NAMESPACE_BENTLEY_DGNPLATFORM
USING_NAMESPACE_BENTLEY_MOBILEDGN
USING_NAMESPACE_PBBIM
USING_NAMESPACE_PBBIM_CORE
USING_NAMESPACE_PBBIM_ARCHMODEL
USING_NAMESPACE_PBBIM_ARCHTOOL

static DataTest *s_DataTest;

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          12/2014
//---------------------------------------------------------------------------------------
DataTest::DataTest() :
m_OpenMirror(0),
m_Offset(0),
m_Direct(0),
{
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          12/2014
//---------------------------------------------------------------------------------------
DataTest::~DataTest()
{
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          12/2014
//---------------------------------------------------------------------------------------
DataTestR DataTest::Get()
{
    if (NULL == s_DataTest)
        s_DataTest = new DataTest();

    return *s_DataTest;
}

//---------------------------------------------------------------------------------------
// @bsimethod                                              Y.Dong          12/2014
//---------------------------------------------------------------------------------------
DataTestR DataTest::operator= (const DataTest& val)
{
    if (this == &val)
        return *this;

    m_OpenMirror = val.GetOpenMirror();
    m_Offset = val.GetOffset();
    m_Direct = val.GetDirect();

    return *this;
}
